package busuanzi.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by bruce on 2015/3/7.
 */
public abstract class Logs {

    private final static Logger log = LoggerFactory.getLogger("busuanzi");

    public static void log(String messageTemplate, Object... arguments) {
        if (log.isInfoEnabled()) log.info(messageTemplate, arguments);
    }

    public static void error(Throwable t, String message) {
        if (log.isErrorEnabled()) log.error(message, t);
    }

    public static void error(String message, Object... ts) {
        if (log.isErrorEnabled()) log.error(message, ts);
    }
}
